function getItem(key){
    let data = localStorage.getItem(key);
    if(data == null){
        return null;
    }
    
    return JSON.parse(data);
}

function setItem(key, value){
    localStorage.setItem(key, JSON.stringify(value));
}

function removeItem(key){
    localStorage.removeItem(key);
}